package com.fanco.learn_datastruct_leetcode.designpattern.decorator;

/**
 * @author qiaowang 2022/2/14
 * 描述
 */
public abstract class Drink {
    public String des;

    private float price = 0.0f;

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    // 计算费用的抽象方法
    // 子类来实现
    public abstract float cost();
}
